package com.etop.weibo.beans;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**<p>用户间关注与粉丝实体</p>
 * <p>starId-----s_id</p>
 * <p>fanId-----f_id</p>
 * @author jansing
 */
@Entity
@Table(name="t_star_fan")
public class StarAndFan {
	private int id;
	private int starId;
	private int fanId;
        
	public StarAndFan(){
	}
        public StarAndFan(int starId, int fanId){
            this.starId = starId;
            this.fanId = fanId;
        }
	public StarAndFan(int id, int starId, int fanId) {
		this.id = id;
		this.starId = starId;
		this.fanId = fanId;
	}
       
        @Id
        @GeneratedValue
        public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
        @Column(name="s_id")
	public int getStarId() {
		return starId;
	}
	public void setStarId(int starId) {
		this.starId = starId;
	}
        @Column(name="f_id")
	public int getFanId() {
		return fanId;
	}
	public void setFanId(int fanId) {
		this.fanId = fanId;
	}
}
